package lianxi.a;

public interface Shape {
   double getArea();
    double getPERIMETER();



    class Rectangle implements Shape{

        private double length;
        private double width;
      public Rectangle(double length,double width){
          this.width=width;
          this.length = length;
      }

        @Override
        public double getArea() {
            return length*width;
        }

        @Override
        public double getPERIMETER() {
            return 2*(width+length);
        }
    }
}
